public class demo1 {
    public static void main(String[] args) {
        int []arr={1,2,3,6,7};
        threeConsecutiveOdds(arr);
        System.out.println(threeConsecutiveOdds(arr));
        }
        public static boolean threeConsecutiveOdds(int[]arr){
        int count=0;
            for (int i = 0; i < arr.length ; i++) {
             if(arr[i]%2!=0){
                 count++;
             }
             else{
                 count=0;
             }
             }
            if(count==3){
                return true;

            }
            else{
                return  false;
            }

    }
}
